<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserDevice extends Model
{
    public $fileable = [
    	//用户 id
    	'user_id',
    	//设备编码
        'device_id',
        // 'remind_times',
    ];

    public function user(){
    	return $this->belongsTo('App\Models\User', 'user_id');
    }

    public function device(){
    	return $this->belongsTo('App\Models\Device', 'device_id');
    }
}
